package com.meilai.project.mapper.personnel.onTurn;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.meilai.project.dto.personnel.onTurn.TransferApplyListDTO;
import com.meilai.project.entity.personnel.onTurn.TransferApply;
import com.meilai.project.vo.personnel.onTurn.TransferApplyVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 异动申请 Mapper 接口
 * </p>
 *
 * @author xchen
 * @since 2022-01-26
 */
public interface TransferApplyMapper extends BaseMapper<TransferApply> {
    TransferApplyVO queryDetailById(@Param("id") Long id);

    TransferApplyVO queryDetailByIdNew(@Param("id") Long id, @Param("roster_id") Long roster_id);

    List<TransferApplyVO> selectPageList(Page<TransferApplyVO> page,
                                         @Param("query") TransferApplyListDTO dto);
}
